package com.yeshine.opendata.service;

import com.yeshine.opendata.core.IService;
import com.yeshine.opendata.entity.User;
import com.yeshine.opendata.utils.Result;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * Created by taohj on 2014/6/28.
 */
public interface IUserService extends IService<User>{



    public Result<User> activation(int id,String uid);


    public  abstract Result<User> modify(User user,HttpServletRequest request);


    Result<User> login(User user);

    Result<User> password(Integer id, String password, String newpassword);

    Result<User> create(User user, HttpServletRequest request) throws IOException;
}
